Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unprivileged upgrade testing for Windows. #4642

Merged

Conversation

blakerouse
Copy link
Contributor

@blakerouse blakerouse commented Apr 30, 2024

What does this PR do?

Adds upgrade testing for unprivileged mode on Windows.

Why is it important?

Upgrade testing for unprivileged mode on Windows was not enabled.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added an entry in ./changelog/fragments using the changelog tool
  • I have added an integration test or an E2E test

Related issues

@blakerouse blakerouse added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team skip-changelog backport-v8.14.0 Automated backport with mergify labels Apr 30, 2024
@blakerouse blakerouse self-assigned this Apr 30, 2024
@blakerouse blakerouse requested a review from a team as a code owner April 30, 2024 18:54
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

Copy link
Member

@cmacknz cmacknz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM besides a couple of nits.

Copy link

Quality Gate failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 40%)

See analysis details on SonarQube

@ycombinator
Copy link
Contributor

Force merging as SonarQube is reporting 0% but new code added in the PR is not unit testable and integration tests have been updated.

@ycombinator ycombinator merged commit 4d3a3f9 into elastic:main May 7, 2024
8 of 9 checks passed
mergify bot pushed a commit that referenced this pull request May 7, 2024
* Add unprivileged upgrade testing for Windows.

* Adjust to 8.14.0-SNAPSHOT as minimum.

* Add SeCreateSymbolicLinkPrivilege

* Simplify if unprivileged mode is supported.

* Fix file access for upgrade.

* Fix kill watcher process on Windows in unprivileged mode.

* Fix imports.

* Fix kill non child process in tests.

* Fix lint.

(cherry picked from commit 4d3a3f9)
@blakerouse blakerouse deleted the windows-unprivileged-upgrade-testing branch May 7, 2024 18:16
blakerouse added a commit that referenced this pull request May 8, 2024
* Add unprivileged upgrade testing for Windows.

* Adjust to 8.14.0-SNAPSHOT as minimum.

* Add SeCreateSymbolicLinkPrivilege

* Simplify if unprivileged mode is supported.

* Fix file access for upgrade.

* Fix kill watcher process on Windows in unprivileged mode.

* Fix imports.

* Fix kill non child process in tests.

* Fix lint.

(cherry picked from commit 4d3a3f9)

Co-authored-by: Blake Rouse <blake.rouse@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v8.14.0 Automated backport with mergify skip-changelog Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uninstall on Windows unprivileged mode can fail to kill watchers
4 participants